﻿#bannerCarousel {
    width: 100%;
   
    height: 470px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Softer shadow for depth */
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa; /* Light background to avoid blank appearance */
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%; /* Ensure full height usage */
    overflow: hidden;
}

.carousel-item {
    transition: transform 0.6s ease-in-out; /* Smooth slide transitions */
    will-change: transform; /* Optimize for animations */
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure images fill the space */
    object-position: center; /* Center images */
    opacity: 1;
    transition: opacity 0.5s ease-in-out; /* Fade effect for image loading */
    background-color: #e9ecef; /* Placeholder background during load */
}

.carousel-item img[onerror] {
    background-image: url('/assest/img/placeholder.png'); /* Fallback in CSS */
    background-size: cover;
    background-position: center;
}

.carousel-control-prev,
.carousel-control-next {
    width: 6%; /* Slightly wider for better click/touch area */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3), transparent); /* Gradient for controls */
    transition: background 0.3s ease;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5), transparent); /* Hover effect */
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #333; /* Darker icons for visibility */
    border-radius: 50%;
    padding: 10px;
}

.carousel-indicators {
    bottom: 15px; /* Slightly higher for better visibility */
    margin-bottom: 0;
}

.carousel-indicators button {
    width: 14px; /* Slightly larger for touch */
    height: 14px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #333;
    margin: 0 6px;
    opacity: 0.7;
    transition: all 0.3s ease; /* Smooth indicator transitions */
}

.carousel-indicators .active {
    background-color: #007bff; /* Highlight active indicator */
    opacity: 1;
    transform: scale(1.2); /* Subtle scale for active indicator */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #bannerCarousel {
        height: 350px;
    }
    .carousel-inner {
        height: 350px;
    }
    .carousel-control-prev,
    .carousel-control-next {
        width: 8%; /* Larger touch area for tablets */
    }
    .carousel-indicators button {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 576px) {
    #bannerCarousel {
        height: 200px;
    }
    .carousel-inner {
        height: 200px;
    }
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%; /* Larger touch area for mobile */
    }
    .carousel-indicators {
        bottom: 10px;
    }
    .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}

/* High-resolution displays */
@media (min-resolution: 2dppx) {
    .carousel-item img {
        image-rendering: optimizeQuality; /* Ensure sharp images */
    }
}
.about {
  
    height: auto;
    width: 100%;
    display: flex;
    background-image: url('../img/pattern-bg2.jpg');
}

.dark-mode .about {
    background-color: #121212 !important;
    background-image: none !important;
    border: 1px solid #444; /* Optional: change border color */
    color: #fff !important;
}


.about2 {
   
    height: 650px;
    width: 50%;
}

.about2  h3 {
    margin-left:30px;
    font-size:15px;
    padding-top:60px;
}

.about2 h1 {
    margin-left:20px;
    font-size:25px;
    margin-top:100px;
}

.about2 p {
    margin-left:20px;
    font-size:18px;
    text-align:justify;
    width:95%;
    margin-top:30px;
}

.about3 {
   
    height: auto;
 
    width:50%;
    margin-top:30px;
}


.about4 {
    display: flex;
    height: auto;
    width: 100%;
    margin-top:30px;
}

.aboutgupta {
    width: 45%;
    height: auto;
    margin-left: 20px;
    overflow: hidden; 
}

    .aboutgupta img {
        width: 100%;
        height: 90%;
        transition: transform 0.4s ease, box-shadow 0.4s ease;
        border-radius: 5px; 
    }

        .aboutgupta img:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }










@media (max-width: 768px) {

    .about {
        height: auto;
        width: 100%;
        display: flex;
        flex-direction:column;
        background-image: url('../img/pattern-bg2.jpg');
      
    }

    .dark-mode .about {
        background-color: #121212 !important;
        background-image: none !important;
        border: 1px solid #444; /* Optional: change border color */
        color: #fff !important;
    }


    .about2 {
        height: 100%;
        width: 100%;
    }

        .about2 h3 {
            margin-left: 30px;
            font-size: 15px;
            padding-top: 60px;
        }

        .about2 h1 {
            margin-left: 20px;
            font-size: 25px;
            margin-top: 100px;
        }

        .about2 p {
            margin-left: 10px;
            font-size: 18px;
            text-align: justify;
            width: 95%;
            margin-top: 30px;
        }

    .about3 {
        height: auto;
        width: 100%;
        margin-top: 30px;
    }


    .about4 {
        display: flex;
        flex-direction:column;
        height: auto;
        width: 100%;
        margin-top: 30px;
    }

    .aboutgupta {
        width: 100%;
        height: auto;
        margin-left: 0px;
        margin-top:30px;
    }

        .aboutgupta img {
            width: 100%;
            height: 90%;
        }

}


.container-offered {
    color: #fff;
    font-family: Arial, sans-serif;
    background-image: url('../img/parallax-bg5.jpg');
    background-size: cover;
    background-position: center;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Dark mode styles */
.dark-mode .container-offered {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../img/parallax-bg5.jpg');
    color: #e0e0e0;
}

.header-text {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: bold;
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color:black;
}

.dark-mode .header-text {
    color: #f0f0f0;
}

.sub-text {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    text-align: center;
    margin: 1rem auto;
    max-width: 800px;
    color: black;
}

.dark-mode .sub-text {
    color: #b0b0b0;
}

.underline {
    width: 50px;
    height: 2px;
    background-color: #A9C3C6;
    margin: 0 auto 1.5rem;
}

.dark-mode .underline {
    background-color: #4a90e2;
}

.icon-box {
    background-color: rgba(255, 255, 255, 0.9);
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px dashed #A9C3C6;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .icon-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

.dark-mode .icon-box {
    background-color: rgba(40, 40, 40, 0.9);
    border-color: #4a90e2;
}

.icon-box img {
   width:90px;
}

.dark-mode .icon-box i {
    color: #4a90e2;
}

.icon-text {
    font-size: 0.9rem;
    color: #333;
    text-align: center;
    margin: 0;
}

.dark-mode .icon-text {
    color: #e0e0e0;
}

.footer-text {
    text-align: center;
    margin-top: 2rem;
    color:black;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

    .footer-text a {
        color: #A9C3C6;
        text-decoration: none;
    }

        .footer-text a:hover {
            text-decoration: underline;
        }

.dark-mode .footer-text a {
    color: #4a90e2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-offered {
        padding: 1.5rem 0.5rem;
    }

    .icon-box {
        height: 120px;
    }

        .icon-box i {
            font-size: 1.8rem;
        }

    .icon-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .header-text {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .sub-text {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
        padding: 0 1rem;
    }

    .icon-box {
        height: 100px;
    }

        .icon-box i {
            font-size: 1.5rem;
        }
}






.team-section {
    background: linear-gradient(to bottom, #e6f0fa 0%, #ffffff 100%);
    padding: 50px 0;
    text-align: center;
}

    .team-section h1 {
        font-size: 2.5rem;
        font-weight: bold;
        margin-bottom: 40px;
        color: #000;
    }

.team-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .team-card img {
        width: 100%;
        border-radius: 10px;
        margin-bottom: 15px;
    }

    .team-card p {
        font-size: 0.9rem;
        color: #333;
        margin-bottom: 15px;
        flex-grow: 1;
    }

.doctor-info {
    background-color: #1e3a8a;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

    .doctor-info h5 {
        font-size: 1.1rem;
        margin: 0;
    }

    .doctor-info p {
        font-size: 0.8rem;
        margin: 0;
        color: white;
    }

.read-more {
    background-color: #3b82f6;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
}

    .read-more:hover {
        background-color: #2563eb;
        color: white;
    }

@media (max-width: 768px) {
    .team-section h1 {
        font-size: 1.8rem;
    }

    .team-card {
        margin-bottom: 20px;
    }
}

/* Dark Mode Styles */
@media (prefers-color-scheme: dark) {
    .team-section {
        background: linear-gradient(to bottom, #2a4365 0%, #1a2634 100%);
    }

        .team-section h1 {
            color: #e5e7eb;
        }

    .team-card {
        background-color: #2d3748;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

        .team-card p {
            color: #d1d5db;
        }

    .doctor-info {
        background-color: #4a6b9c;
    }

    .read-more {
        background-color: #60a5fa;
    }

        .read-more:hover {
            background-color: #3b82f6;
        }
}

/* Dark Mode Toggle Class (Optional for manual toggle) */
.dark-mode .team-section {
    background: linear-gradient(to bottom, #2a4365 0%, #1a2634 100%);
}

    .dark-mode .team-section h1 {
        color: #e5e7eb;
    }

.dark-mode .team-card {
    background-color: #2d3748;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

    .dark-mode .team-card p {
        color: #d1d5db;
    }

.dark-mode .doctor-info {
    background-color: #4a6b9c;
}

.dark-mode .read-more {
    background-color: #60a5fa;
}

    .dark-mode .read-more:hover {
        background-color: #3b82f6;
    }







.konikatretment {
    height: 400px;
    width: 100%;
    background-image: url('../img/parallax-bg8.jpg');
}


.dark-mode .konikatretment {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../img/parallax-bg8.jpg');
    color: #e0e0e0;
}



.konikatretment h3{
    font-size:16px;
    margin-left:100px;
    padding-top:50px;
}





.konikatretment h1 {
    font-size: 25px;
    margin-left: 100px;
}

.konikatretment h3 {
    margin-left: 100px;
    color: #007bff;
}

.slider2-container {
    width: 100%;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}

.slider2 {
    display: flex;
    width: 300%; /* 3 slides, each with 3 images */
    animation: slide 12s infinite ease-in-out;
}

.slide2 {
    display: flex;
    width: 100%;
    gap: 10px; /* Add gap between images */
}

    .slide2 img {
        width: calc((100% - 20px) / 3); /* Adjust width to account for gaps (10px gap between each image) */
        height: 200px;
        object-fit: cover;
        border-radius: 10px;
    }

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(0);
    }

    33.33% {
        transform: translateX(-33.33%);
    }

    58.33% {
        transform: translateX(-33.33%);
    }

    66.66% {
        transform: translateX(-66.66%);
    }

    91.66% {
        transform: translateX(-66.66%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .konikatretment h1, .konikatretment h3 {
        margin-left: 20px; /* Reduce margin on mobile */
        font-size: 20px; /* Slightly smaller font size for h1 */
    }

    .konikatretment h3 {
        font-size: 16px; /* Smaller font size for h3 */
    }

    .slider2-container {
        width: 90%; /* Keep some margin on mobile */
    }

    .slider2 {
        width: 900%; /* 9 images, each taking 100% width */
        animation: slide-mobile 18s infinite ease-in-out;
    }

    .slide2 {
        width: 33.33%; /* Each slide now contains 1 image */
        gap: 0; /* Remove gap since only 1 image is shown */
    }

        .slide2 img {
            width: 100%; /* Each image takes full width */
        }

    @keyframes slide-mobile {
        0% {
            transform: translateX(0);
        }

        9% {
            transform: translateX(0);
        }

        11% {
            transform: translateX(-11.11%);
        }

        20% {
            transform: translateX(-11.11%);
        }

        22% {
            transform: translateX(-22.22%);
        }

        31% {
            transform: translateX(-22.22%);
        }

        33% {
            transform: translateX(-33.33%);
        }

        42% {
            transform: translateX(-33.33%);
        }

        44% {
            transform: translateX(-44.44%);
        }

        53% {
            transform: translateX(-44.44%);
        }

        55% {
            transform: translateX(-55.55%);
        }

        64% {
            transform: translateX(-55.55%);
        }

        66% {
            transform: translateX(-66.66%);
        }

        75% {
            transform: translateX(-66.66%);
        }

        77% {
            transform: translateX(-77.77%);
        }

        86% {
            transform: translateX(-77.77%);
        }

        88% {
            transform: translateX(-88.88%);
        }

        97% {
            transform: translateX(-88.88%);
        }

        100% {
            transform: translateX(0);
        }
    }
}



body.dark-mode {
    background-color: #1a1a2e;
    color: #e0e0e0;
}

.facilities-section {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.facilities-left {
    flex: 1;
}

    .facilities-left h2 {
        color: #007bff;
        font-size: 18px;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .facilities-left h2::before {
            content: "~~";
            font-size: 14px;
        }

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.facility-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .facility-item .icon {
        width: 40px;
        height: 40px;
        background-color: #007bff;
        color: white;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 20px;
    }

    .facility-item p {
        margin: 0;
        font-size: 16px;
    }

.facilities-right {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.surgery-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #1a3c5e;
    padding: 15px;
    border-radius: 10px;
    color: white;
}

    .surgery-item .icon {
        font-size: 30px;
    }

    .surgery-item .text {
        flex: 1;
    }

        .surgery-item .text h3 {
            margin: 0;
            font-size: 18px;
            font-weight: bold;
            color: white;
        }

        .surgery-item .text p {
            margin: 5px 0 0;
            font-size: 16px;
        }

/* Dark mode adjustments */
body.dark-mode .surgery-item {
    background-color: #2a4b7c;
}

body.dark-mode .facility-item p {
    color: #e0e0e0;
}

body.dark-mode .facilities-left h2 {
    color: #66b0ff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .facilities-section {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }

    .facilities-left, .facilities-right {
        flex: none;
    }

        .facilities-left h2 {
            font-size: 16px;
        }

    .facility-item p {
        font-size: 14px;
    }

    .facility-item .icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .facilities-grid {
        gap: 15px;
    }

    .surgery-item {
        padding: 10px;
    }

        .surgery-item .icon {
            font-size: 25px;
        }

        .surgery-item .text h3 {
            font-size: 16px;
        }

        .surgery-item .text p {
            font-size: 14px;
        }
}

@media (max-width: 480px) {
    .facilities-grid {
        grid-template-columns: 1fr;
    }

    .facilities-right {
        grid-template-columns: 1fr;
    }

    .facilities-section {
        padding: 15px;
    }
}








.reviews-section {
    padding: 40px 0;
    text-align: center;
}

.dark-mode .reviews-section{
    background-color:black;
   
}

    .reviews-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
        color: #333;
    }

    .dark-mode .reviews-section h2{
        color:white;
    }

.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.review-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 0 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 0 0 33.33%; /* 3 cards visible on desktop */
    text-align: center;
}

    .review-card img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        margin-bottom: 10px;
    }

    .review-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        color: #333;
    }

    .review-card p {
        font-size: 0.9rem;
        color: #666;
    }

/* Navigation Arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #007bff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

/* Auto-slide Animation */
@keyframes slide {
    0% {
        transform: translateX(0);
    }

    15% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-16.67%);
    }

    35% {
        transform: translateX(-16.67%);
    }

    40% {
        transform: translateX(-33.33%);
    }

    55% {
        transform: translateX(-33.33%);
    }

    60% {
        transform: translateX(-50%);
    }

    75% {
        transform: translateX(-50%);
    }

    80% {
        transform: translateX(-66.67%);
    }

    95% {
        transform: translateX(-66.67%);
    }

    100% {
        transform: translateX(0);
    }
}

.slider {
    animation: slide 15s infinite;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .review-card {
        flex: 0 0 100%; /* 1 card visible on mobile */
        margin: 0 5px;
    }

    @keyframes slide {
        0% {
            transform: translateX(0);
        }

        15% {
            transform: translateX(0);
        }

        20% {
            transform: translateX(-100%);
        }

        35% {
            transform: translateX(-100%);
        }

        40% {
            transform: translateX(-200%);
        }

        55% {
            transform: translateX(-200%);
        }

        60% {
            transform: translateX(-300%);
        }

        75% {
            transform: translateX(-300%);
        }

        80% {
            transform: translateX(-400%);
        }

        95% {
            transform: translateX(-400%);
        }

        100% {
            transform: translateX(0);
        }
    }
}